import request from '@/router/axios';

/**
 * 通过id获取通知公告
 * @param {*} data 
 * @returns 
 */
export const get = (data) => request({
  url: '/sys/notice/get',
  method: 'post',
  data
});
/**
 * 分页查询通知公告
 * @param {*} data 
 * @returns 
 */
 export const list = (data) => request({
  url: '/sys/notice/list',
  method: 'post',
  data
});
/**
 * 删除通知公告
 * @param {*} data 
 * @returns 
 */
 export const remove = (data) => request({
  url: '/sys/notice/remove',
  method: 'post',
  data
});
/**
 * 添加通知公告
 * @param {*} data 
 * @returns 
 */
 export const save = (data) => request({
  url: '/sys/notice/save',
  method: 'post',
  data
});
/**
 * 修改通知公告
 * @param {*} data 
 * @returns 
 */
 export const update = (data) => request({
  url: '/sys/notice/update',
  method: 'post',
  data
});